<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>短信模版</title>
<link href="${base}/resource/admin/css/common.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${base}/resource/admin/js/jquery.js"></script>
<script type="text/javascript" src="${base}/resource/admin/js/jquery.validate.js"></script>
<script type="text/javascript" src="${base}/resource/admin/js/common.js"></script>
<script type="text/javascript" src="${base}/resource/admin/js/input.js"></script>
<script type="text/javascript">

$().ready(function() {

	var $inputForm = $("#inputForm");
	[@flash_message /]


});
</script>
</head>
<body>
	<div class="path">
		<a href="${base}/admin/common/index.do">首页</a> &raquo;添加应用
	</div>
	<form id="inputForm" action="save.do" method="post" class="required-form" onsubmit="return validateForm(this)">
		<table class="input">
            <tr>
                <th>
                    <span class="requiredField">*</span>客户:
                </th>
                <td>
                    <select name="customer.id" class="text required">
                        <option value="0" disabled="disabled">空</option>
                         [#list customerList as customer]
                           <option value="${customer.id}">${customer.name}</option>
                        [/#list]
                    </select>
                </td>
            </tr>
			<tr>
				<th>
					<span class="requiredField">*</span>App名称
				</th>
				<td>
					<input type="text" name="name" class="text required" maxlength="100" />
				</td>
			</tr>
			<tr>
				<th>
                    <span class="requiredField">*</span>AppID
				</th>
                <td>
                    <span class="fieldSet">
					    <input type="text" name="appID" class="text required" maxlength="64" />
						<input type="button" id="generateAppID" class="button" value="生成" />
					</span>
                </td>
			</tr>
            <tr>
                <th>
                    <span class="requiredField">*</span>AppKey
                </th>
                <td>
                    <span class="fieldSet">
						<input type="text" name="appKey" class="text required" maxlength="64" />
						<input type="button" id="generateAppKey" class="button" value="生成" />
					</span>
                </td>
            </tr>
            <tr>
                <th>
                    <span class="requiredField">*</span>App识别码
                </th>
                <td>
                    <span class="fieldSet">
						<input type="text" name="appCode" class="text required" maxlength="4" />
					</span>
                </td>
            </tr>
            <tr>
                <th>
                    <span class="requiredField">*</span>离线通知地址
                </th>
                <td>
                    <span class="fieldSet">
						<input type="text" name="offlineNotifyUrl" class="text required" maxlength="64" />
					</span>
                </td>
            </tr>
            <tr>
                <th>
                    <span class="requiredField">*</span>包月通知地址
                </th>
                <td>
                    <span class="fieldSet">
						<input type="text" name="monthNotifyUrl" class="text required" maxlength="64" />
					</span>
                </td>
            </tr>
            <tr>
                <th>
                    说明
                </th>
                <td>
                    <input type="text" name="description" class="text required" maxlength="100" value="" />
                </td>
            </tr>
			<tr>
				<th>
					<span class="requiredField">*</span>是否启用:
				</th>
				<td>
					<select name="enabled" class="required">
                        <option value="1">是</option>
                        <option value="0">否</option>
					</select>
				</td>
			</tr>
            <tr>
                <th>
                    日请求次数上限
                </th>
                <td>
                    <input type="text" name="allowDayCount" class="text required" maxlength="100" value="" />
                </td>
            </tr>
            <tr>
                <th>
                    <span class="requiredField">*</span>投诉模板
                </th>
                <td>
                    <span class="fieldSet">
					    <input type="text" name="complaintTemplate" class="text" value="" maxlength="200"  />
					    <input type="button" id="complaintTemplate" class="button" alt="60" value="选择" />
			        </span>
                </td>
            </tr>
			<tr>
				<th>
					&nbsp;
				</th>
				<td>
					<input type="submit" class="button" value="提交" />
					<input type="button" class="button" value="返回" onclick="location.href='list.do'" />
				</td>
			</tr>
		</table>
	</form>
</body>
</html>